import { http } from '@/utils/http/axios';

//获取会议室情况

export const getRooms = async () => {
  return await http.request({
    url: '/meetingroom/meeting',
    method: 'GET',
  });
};

//修改会议室

export const putRoom = async (params) => {
  return await http.request({
    url: `/meetingroom/put/${params.id}`,
    method: 'PUT',
    params,
  });
};

//删除会议室
export const cancel = async (params) => {
  return await http.request({
    url: `/meetingroom/dele/${params.id}`,
    method: 'delete',
  });
};

//新增会议室
export const add = async (params) => {
  return await http.request({
    url: 'meetingroom',
    method: 'post',
    params,
  });
};
